//
//  ClickMoreButtonTVC.m
//  UILbrary
//
//  Created by mac on 16/7/20.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ClickMoreButtonTVC.h"
#import "ClickMoreButtonVC.h"
#import "ClickMoreButtonVCone.h"
@interface ClickMoreButtonTVC ()
@property (nonatomic, strong) NSArray * titleArr;
@end
@implementation ClickMoreButtonTVC


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return self.titleArr.count;
    
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ClickMoreButtonTVCCell"];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"ClickMoreButtonTVCCell"];
    }
    cell.textLabel.text = self.titleArr[indexPath.row];
    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    if (indexPath.row == 0) {
        ClickMoreButtonVC *vc = [[ClickMoreButtonVC alloc] init];
        [self.navigationController pushViewController:vc animated:YES];
    }
    if (indexPath.row == 1) {
        ClickMoreButtonVCone *vc = [[ClickMoreButtonVCone alloc] init];
        [self.navigationController pushViewController:vc animated:YES];
    }
}
- (NSArray *)titleArr{
    return @[@"UIView animal",@"带弹簧效果"];
}
@end
